<nav class="navbar navbar-light navbar-expand-lg bg-light bd-navbar fixed-top" id="navbar-main">
  <a class="navbar-brand" href="{{ pathto('index') }}">
    <img src="https://raw.githubusercontent.com/sfu-db/dataprep/develop/assets/logo_cropped.jpg" alt="DataPrep"
      height="60" width="210">
  </a>

  <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbar-menu"
    aria-controls="navbar-menu" aria-expanded="false" aria-label="Toggle navigation">
    <span class="navbar-toggler-icon"></span>
  </button>

  <div id="navbar-menu" class="collapse navbar-collapse">
    <ul id="navbar-main-elements" class="navbar-nav mr-auto">
      {% set nav = get_nav_object(maxdepth=1) %}
      {% for main_nav_item in nav %}
      <li class="nav-item {% if main_nav_item.active%}active{% endif %}">
        <a class="nav-link" href="{{ main_nav_item.url }}">{{ main_nav_item.title }}</a>
      </li>
      {% endfor %}
      <li class="nav-item">
        <a class="nav-link nav-external" href="https://discord.gg/xwbkFNk" target="_blank" rel="noopener">
          Community
        </a>
      </li>
    </ul>
    <ul class="navbar-nav ml-auto">
      <li class="nav-item">
        <a class="nav-link" href="https://github.com/sfu-db/dataprep" target="_blank" rel="noopener">
          <span><i class="fa fa-github-square" style="color:#333;font-size:2rem;"></i></span>
        </a>
      </li>
      <li class="nav-item">
        <a class="nav-link" href="https://twitter.com/sfu_db" target="_blank" rel="noopener">
          <span><i class="fa fa-twitter-square" style="color:#55acee;font-size:2rem"></i></span>
        </a>
      </li>
      </li>
      <li class="nav-item">
        <a class="nav-link" href="https://www.youtube.com/channel/UC7OpZsQwWcmuD0SUaOjGBMA" target="_blank"
          rel="noopener">
          <span><i class="fa fa-youtube-square" style="color:#FF0000;font-size:2rem"></i></span>
        </a>
      </li>
    </ul>
  </div>
</nav>